package analytics;

import management.ClientEventReceiver;

/**
 * Contains the info of a subscription.
 * 
 * @author Lukas
 *
 */
public class Subscription {
	private String filter;
	private ClientEventReceiver receiver;
	
	/**
	 * Constructor.
	 * @param filter The filter.
	 * @param receiver The receiver.
	 */
	public Subscription(String filter, ClientEventReceiver receiver) {
		this.filter = filter;
		this.receiver = receiver;
	}
	/**
	 * @return the filter
	 */
	public String getFilter() {
		return filter;
	}
	/**
	 * @param filter the filter to set
	 */
	public void setFilter(String filter) {
		this.filter = filter;
	}
	/**
	 * @return the receiver
	 */
	public ClientEventReceiver getReceiver() {
		return receiver;
	}
	/**
	 * @param receiver the receiver to set
	 */
	public void setReceiver(ClientEventReceiver receiver) {
		this.receiver = receiver;
	}
}
